package org.czf.zk;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    ZookeeperApi zookeeperApi;

    @RequestMapping("/test")
    public void test(){
        try {
            zookeeperApi.create();
            zookeeperApi.exists();
        }
        catch (Exception e) {
            e.printStackTrace();
        }

    }
}
